const add = function (record, that) {
  console.log('post action')
  return that.Atm.postAction(that.url.add, record)
}

const edit = function (record, that) {
  console.log('put action')
  return that.Atm.putAction(that.url.edit, record)
}

export default { add, edit };

const sourceConfigColumns = [
  { title: 'id', align: "center", dataIndex: 'id' },
  { title: '配置名', align: "center", dataIndex: 'name' },
  { title: '描述', align: "center", dataIndex: 'note' },
  { title: '源对象', align: "center", dataIndex: 'sourceName' },
  { title: '操作', scopedSlots: { customRender: 'action' } }
]

const mapperConfigColumns = [
  { title: 'id', align: "center", dataIndex: 'id' },
  { title: '配置名', align: "center", dataIndex: 'name' },
  { title: '描述', align: "center", dataIndex: 'note' },
  { title: '操作', scopedSlots: { customRender: 'action' } }
]

export { sourceConfigColumns, mapperConfigColumns }
